/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.teaching.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 学员管理Entity
 * @author 陈希贵
 * @version 2018-02-04
 */
public class BayUser extends DataEntity<BayUser> {
	
	private static final long serialVersionUID = 1L;
	private String username;		// 账号
	private String password;		// 密码
	private String nickname;		// 昵称
	private String avatar;		// avatar
	
	public BayUser() {
		super();
	}

	public BayUser(String id){
		super(id);
	}

	@Length(min=0, max=20, message="账号长度必须介于 0 和 20 之间")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=20, message="密码长度必须介于 0 和 20 之间")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Length(min=0, max=20, message="昵称长度必须介于 0 和 20 之间")
	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	@Length(min=0, max=30, message="avatar长度必须介于 0 和 30 之间")
	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	
}